﻿@using Library
<div class="modal fade" id="confirmDialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="@NOWCulture.GetString("Close")"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">@Html.Raw(ViewBag.Title)</h4>
            </div>
            <div class="modalloading" id="confirmDialogLoading">
                <span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> @NOWCulture.GetString("Loading...")
            </div>
            <div class="modal-body">
                @Html.Raw(ViewBag.Content)
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">@NOWCulture.GetString("No")</button>
                <button type="button" class="btn btn-primary" data-yes>@NOWCulture.GetString("Yes")</button>
            </div>
        </div>
    </div>
</div>
@if (!string.IsNullOrEmpty(ViewBag.AlertTitle))
{
    <div class="modal fade" id="confirmAlert">
        <div class="modal-dialog">
            <div class="alert alert-danger">
                <button type="button" class="close" data-dismiss="modal" aria-label="@NOWCulture.GetString("Close")"><span aria-hidden="true">&times;</span></button>
                <h4>@Html.Raw(ViewBag.AlertTitle)</h4>
                <div data-alertcontent></div>
            </div>
        </div>
    </div>
}